home *** CD-ROM | disk | FTP | other *** search
- Document Type: WSE
- item: Global
- Version=6.0
- Title=Addition
- Flags=00000100
- Split=1420
- Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- Copy Default=1
- Japanese Font Name=MS Gothic
- Japanese Font Size=10
- Start Gradient=0 0 255
- End Gradient=0 0 0
- Windows Flags=00000100000000000010110000001000
- Message Font=MS Sans Serif
- Font Size=8
- Disk Filename=SETUP
- Patch Flags=0000000000000001
- Patch Threshold=85
- Patch Memory=4000
- FTP Cluster Size=20
- end
- item: Remark
- Text=The sample script for Wise 6.0 shows how to do a simple addition function with Wise's expression parser.
- end
- item: Remark
- end
- item: Remark
- Text=These lines of code are devoted to getting input from the user.
- end
- item: Prompt for Text
- Window Title=Parser Addition Test
- Prompt Title=Please enter a number.
- Variable=NUMBER
- end
- item: Prompt for Text
- Window Title=Parser Addition Test
- Prompt Title=Please enter a second number.
- Variable=NUMBER2
- end
- item: Remark
- end
- item: Remark
- Text=There are two ways to use the expression parser. The first is using the set variable command.
- end
- item: Remark
- Text=When creating an expression, you do not have to use the percent signs to define the variables.
- end
- item: Set Variable
- Variable=ANSWER
- Value=NUMBER + NUMBER2
- Flags=00100000
- end
- item: Display Message
- Title=Expression Parser - Addition Test 1.
- Text=This Display message shows the set variable command in conjunction with the Expression parser.
- Text=
- Text=%Number% + %Number2% = %Answer%
- end
- item: Remark
- end
- item: Remark
- Text=The other way to use the expression parser is shown below, using an if/while statement with "Expression true".
- end
- item: Remark
- Text=You can also use the command options such as <, >, >=, <=, and, or, not, and <>.
- end
- item: If/While Statement
- Value=NUMBER + NUMBER2 = ANSWER
- Flags=00001101
- end
- item: Display Message
- Title=Expression Parser - Addition Test 2.
- Text=This Display message shows an if/while statement in conjunction with the Expression parser.
- Text=
- Text=Yes, %Number% + %Number2% = %Answer%
- end
- item: End Block
- end
-